package com.ygqh.baby.mapper;

import com.ygqh.baby.po.YgWholesalerDeliveryOrderDetail;
import com.ygqh.baby.po.YgWholesalerDeliveryOrderDetailExample;
import com.ygqh.baby.ao.QueryInfo;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

/**
 * @author Ss
 */
public interface YgWholesalerDeliveryOrderDetailMapper {
	int countByExample(YgWholesalerDeliveryOrderDetailExample example);

	int deleteByExample(YgWholesalerDeliveryOrderDetailExample example);

	int deleteByPrimaryKey(Long id);

	int insert(YgWholesalerDeliveryOrderDetail record);

	int insertSelective(YgWholesalerDeliveryOrderDetail record);

	List<YgWholesalerDeliveryOrderDetail> selectByExample(YgWholesalerDeliveryOrderDetailExample example);

	YgWholesalerDeliveryOrderDetail selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") YgWholesalerDeliveryOrderDetail record, @Param("example") YgWholesalerDeliveryOrderDetailExample example);

	int updateByExample(@Param("record") YgWholesalerDeliveryOrderDetail record, @Param("example") YgWholesalerDeliveryOrderDetailExample example);

	int updateByPrimaryKeySelective(YgWholesalerDeliveryOrderDetail record);

	int updateByPrimaryKey(YgWholesalerDeliveryOrderDetail record);

	int countSuper(@Param("q") String q);

	List<YgWholesalerDeliveryOrderDetail> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("q") String q);

	List<Integer> selectExistsStockoutId(@Param("stockoutIdList") List<Integer> stockoutIdList);

	int insertBatch(@Param("list") List<YgWholesalerDeliveryOrderDetail> insertList);

	List<YgWholesalerDeliveryOrderDetail> selectByShopNo(@Param("shopNo") String shopNo, @Param("startDate") Date startDate, @Param("endDate") Date endDate);
}



